﻿// 1.1.1.11. Write a program to read your age from the console and print how old you will be after 10 years.

using System;

class TenYearsLater
{
    static void Main()
    {
        Console.Write("Please enter with number how old you are: ");
        int birthYear = DateTime.Now.Year - int.Parse(Console.ReadLine());  // reading user's age and calculating its birth year
        DateTime virtualBirthday = new DateTime(birthYear, DateTime.Now.Month, DateTime.Now.Day);   // creating new date with user's birth year
        DateTime dateAfterTenYears = DateTime.Now.AddYears(10); // creating the date which will be after exactly 10 years
        Console.WriteLine("After 10 years you are going to be {0} years old.", dateAfterTenYears.Year - virtualBirthday.Year);  // printing the result
    }
}